﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using com.guojin.core.io.message;
using com.guojin.core.io;
using System;

namespace com.guojin.mj.net.message.login
{
    public class JoinClub : Message
    {
        public static int TYPE = 7;
        public static int ID=84;
        private int id;//俱乐部ID
        public int Id
        {
            get
            {
                return id;
            }
            set
            {
                id = value;
            }
        }
        public static JoinClub create(int id) {
            JoinClub jc = new JoinClub();
            jc.id = id;
            return jc;
        }
        public void decode(core.io.Input _in)
        {
           
        }

        public void encode(Output _out)
        {
            _out.writeInt(id);
        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return "id" + id ;
        }
    }
}
